import axios from '../request'
import {type LoginForm} from '../../model/login/LoginForm'

export const login = (form: LoginForm) => {
    return axios({
        url: '/login',
        method: 'post',
        data: form
    })
}

export const getCaptchaCode = () => {
    return axios({
        url: '/captcha/getCaptchaImage',
        method: 'get'
    })
}